#!/bin/bash
#Queda poner todos los archivos q se modifiquen a .old, dar pausas, ver algunos archivos turbios que no van bien asi, etc

sudo apt-get -y update
sudo apt-get -y upgrade

#sshd
sudo apt-get -y install sshd

#codecs
#pillar los de mas abajo!

#vsftpd en el 21
sudo apt-get -y install vsftpd
sudo mv /etc/vsftpd.conf /etc/vsftpd.conf.old
sudo cp install_files/vsftpd.conf /etc/vsftpd.conf
sudo /etc/init.d/vsftpd restart

#fstab
sudo cp /etc/fstab /etc/fstab.old
sudo cp install_files/fstab /etc/fstab

#mldonkey en el 81
echo DALE_QUE_NO!!!!
sudo mount /dev/sdb1
sudo apt-get -y install mldonkey-server
sudo /etc/init.d/mldonkey-server stop
sudo cp install_files/mldonkey-server /etc/default/mldonkey-server
sudo mv /var/lib/mldonkey /home/debuti/.mldonkey
sudo cp install_files/mldonkey-server_init /etc/init.d/mldonkey-server
sudo rm -rf .mldonkey/incoming
sudo ln -s /media/sdb1/DOWNLOAD/INCOMING .mldonkey/incoming
sudo rm .mldonkey/users.ini
sudo cp install_files/users.ini .mldonkey/users.ini
echo LA_PASS_DE_admin_ES_t3n4z1t4s
sudo rm -rf .mldonkey/temp
sudo ln -s /media/sdb1/DOWNLOAD/temp .mldonkey/temp
sudo cp install_files/downloads.ini .mldonkey/downloads.ini
sudo /etc/init.d/mldonkey-server start

#compresores/descompresores
sudo apt-get -y install unrar-free
sudo apt-get -y install unrar
sudo apt-get -y install unzip
sudo apt-get -y install p7zip p7zip-rar p7zip-full

#mp3gain
sudo apt-get -y install mp3gain

#samba(instalar antes q el fstab)
sudo /etc/init.d/samba stop
sudo cp install_files/smb.conf /etc/samba/smb.conf
sudo /etc/init.d/samba start

#apache en el 80
sudo apt-get -y install apache2
mkdir www
sudo /etc/init.d/apache2 stop
sudo cp install_files/apache2.conf /etc/apache2/apache2.conf
sudo cp -R install_files/sites-available /etc/apache2/
sudo /etc/init.d/apache2 start

#gnump3d en el 8888
sudo apt-get -y install gnump3d
sudo /etc/init.d/gnump3d stop
sudo cp install_files/gnump3d.conf /etc/gnump3d/gnump3d.conf
sudo /etc/init.d/gnump3d start

#pacpl
mkdir temp
wget http://heanet.dl.sourceforge.net/sourceforge/pacpl/pacpl-4.0.2.tar.gz
tar xzf pacpl-4.0.2.tar.gz
mv pacpl-4.0.2 temp/
rm pacpl-4.0.2.tar.gz
temp/pacpl-4.0.2/install-sh
temp/pacpl-4.0.2/configure

#mediubuntu packages
sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update
sudo apt-get --force-yes -y install medibuntu-keyring
sudo apt-get update
sudo apt-get -y install ubuntu-restricted-extras
sudo apt-get -y install build-essential
sudo apt-get -y install lame flac vorbis-tools wavpack mplayer ffmpeg speex toolame faad faac sox 

cd temp/pacpl-4.0.2/
cd extra
./mod-install-kubuntu.sh
cd ..
./configure
make
sudo make install
cd ../..
rm -rf temp

#ogmrip
mkdir temp
cd temp
wget http://surfnet.dl.sourceforge.net/sourceforge/ogmrip/ogmrip-0.11.2.tar.gz
tar xzf ogmrip-0.11.2.tar.gz
cd ogmrip-0.11.2
sudo apt-get -y install libenca-dev pkg-config libglib2.0-dev libdvdread-dev libtheora-dev libhal-dev libenchant-dev libgettext-ruby-util
./configure
make
sudo make install
cd ..

#shrip
wget http://heanet.dl.sourceforge.net/sourceforge/ogmrip/shrip-0.4.0.tar.gz
tar xzf shrip-0.4.0.tar.gz
rm shrip-0.4.0.tar.gz
cd shrip-0.4.0
sudo apt-get install pkg-config libglib2.0-dev
./configure
make
sudo make install
cd ..
cd ..
rm -rf temp


#!/bin/bash
#SCRIPT FLORIDO!

